/*
Copyright 2010 Sieric
http://sieric.ca

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package vanilla;

import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

@SuppressWarnings("serial")
public class Section_Ignore extends JComponent implements Section {
	private JTextArea ignoreList;
	
	public Section_Ignore() {
		JLabel tmp = new JLabel("Simply enter the relative path of the files and folders to ignore.");
		tmp.setBounds(1, 1, 500, 20);
		add(tmp);
		tmp = new JLabel("One per line.");
		tmp.setBounds(1, 15, 500, 20);
		add(tmp);
		tmp = new JLabel("Add a / at the end of folders path. Else they will be considered as files.");
		tmp.setBounds(1, 30, 500, 20);
		add(tmp);
		
		ignoreList = new JTextArea();
		JScrollPane text = new JScrollPane(ignoreList);
		text.setBounds(1, 50, 485, 100);
		add(text);
		
	}
	
	public String getConfig() {
		return ignoreList.getText().replace('\\', '/');
	}

	public int getBigHeight() {
		return 160;
	}

}
